import { createRouter, createWebHistory } from "vue-router";

// 导入你的组件
// import Home from '../components/Home.vue'
// ...
import About from '../components/About.vue'
import AppLayout from '../components/layout/AppLayout.vue'

// vue项目自带路由
const routes = [
  {
    path: "/",
    name: "Applayout",
    component: AppLayout
  },
  {
    path: "/about",
    name: "About",
    component: About
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;

